package com.yanqu.road.entity.config.skin;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author wpj
 * @Date 2020/9/1
 */
@FieldTypeAnnotation(tableName = "t_p_skins")
public class SkinInfo {
    @FieldTypeAnnotation(update = true, desc = "皮肤id")
    int skinId;
    @FieldTypeAnnotation(desc = "皮肤类型")
    int type;
    @FieldTypeAnnotation(desc = "皮肤品质")
    int quality;
    @FieldTypeAnnotation(desc = "所属美女id")
    int belongRole; // -100表示全体门客
    @FieldTypeAnnotation(desc = "皮肤效果列表")
    List<Integer> skinEffect;
    @FieldTypeAnnotation(desc = "组合id")
    int combId;


    private String icon;
    private String sound;
    private String appearanceId;
    private String tag;
    private int unlockGet;
    private int upgradeGet;

    /**
     * 联动过期时间 毫秒级
     * 0 表示木有联动
     */
    private long linkAge;

    private String skillsParam;             //技能列表
    private List<SkinPatronsSkill> skinPatronsSkillList = new ArrayList<>();
    private List<Integer> skinBeautySkillUpgradeTypeList = new ArrayList<>();
    private int twinsId;        //双生编号
    /**
     * 是否无双皮
     */
    private int isPeerless;
    private int belongSameRole;             //同美女配置

    int isSpecialExc; // 是否能用万能碎片兑换 1-能 0-不能

    public int getSkinId() {
        return skinId;
    }

    public void setSkinId(int skinId) {
        this.skinId = skinId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getQuality() {
        return quality;
    }

    public void setQuality(int quality) {
        this.quality = quality;
    }

    public int getBelongRole() {
        return belongRole;
    }

    public void setBelongRole(int belongRole) {
        this.belongRole = belongRole;
    }

    public List<Integer> getSkinEffect() {
        return skinEffect;
    }

    public void setSkinEffect(List<Integer> skinEffect) {
        this.skinEffect = skinEffect;
    }

    public int getCombId() {
        return combId;
    }

    public void setCombId(int combId) {
        this.combId = combId;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getSound() {
        return sound;
    }

    public void setSound(String sound) {
        this.sound = sound;
    }

    public String getAppearanceId() {
        return appearanceId;
    }

    public void setAppearanceId(String appearanceId) {
        this.appearanceId = appearanceId;
    }

    public int getUnlockGet() {
        return unlockGet;
    }

    public void setUnlockGet(int unlockGet) {
        this.unlockGet = unlockGet;
    }

    public int getUpgradeGet() {
        return upgradeGet;
    }

    public void setUpgradeGet(int upgradeGet) {
        this.upgradeGet = upgradeGet;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public long getLinkAge() {
        return linkAge;
    }

    public void setLinkAge(long linkAge) {
        this.linkAge = linkAge;
    }

    public String getSkillsParam() {
        return skillsParam;
    }

    public void setSkillsParam(String skillsParam) {
        this.skillsParam = skillsParam;
    }

    public List<SkinPatronsSkill> getSkinPatronsSkillList() {
        return skinPatronsSkillList;
    }

    public void setSkinPatronsSkillList(List<SkinPatronsSkill> skinPatronsSkillList) {
        this.skinPatronsSkillList = skinPatronsSkillList;
    }

    public List<Integer> getSkinBeautySkillUpgradeTypeList() {
        return skinBeautySkillUpgradeTypeList;
    }

    public void setSkinBeautySkillUpgradeTypeList(List<Integer> skinBeautySkillUpgradeTypeList) {
        this.skinBeautySkillUpgradeTypeList = skinBeautySkillUpgradeTypeList;
    }

    public int getSkinBeautySkillUpgradeType(int index){
        if(skinBeautySkillUpgradeTypeList.size() > index){
            return skinBeautySkillUpgradeTypeList.get(index);
        }
        return 0;
    }

    public int getTwinsId() {
        return twinsId;
    }

    public void setTwinsId(int twinsId) {
        this.twinsId = twinsId;
    }

    public int isPeerless() {
        return isPeerless;
    }

    public void setPeerless(int peerless) {
        isPeerless = peerless;
    }

    public int getBelongSameRole() {
        return belongSameRole;
    }

    public void setBelongSameRole(int belongSameRole) {
        this.belongSameRole = belongSameRole;
    }
    public int getIsSpecialExc() {
        return isSpecialExc;
    }

    public void setIsSpecialExc(int isSpecialExc) {
        this.isSpecialExc = isSpecialExc;
    }
}
